< previous page page_255 next page >

Page 255
ADO Data Control Properties
Theres a standard set of properties youll set most frequently with the ADO data control. Table 12.2 shows a list of these properties and provides a description of what they do.
Table 12.2 Data Control Properties.
PropertyDescription
AlignAligns the data control to either the top, left, bottom, or right of the form.
BOFActionSet this property to what you want to have happen when the user scrolls the data control to the first record in the recordset. Valid options for this property are to have it stay on the first real record in the recordset or to have it move to the phantom record.
CaptionThis is the area between the movement buttons that you can use to display the name of the table or even the number or records in the recordset.
CommandTypeThe four different types of commands are Unknown, Text, Table, and Stored Procedure. These are related to the ADO Command object, which youll learn about later.
ConnectionStringThis connection string is whats used to connect to the data source itself. You can write this yourself or you can pop up a dialog box to have the user fill this in by answering a series of questions. This property can be set at runtime, which you may do if you need to change server names in case one server goes down and you need to switch to another.
ConnectionTimeOutSet this to the number of seconds you want to wait for a connection. The default is 15 seconds. You can set this to any amount or to zero (0) to wait indefinitely. This value is subject to change based on how busy your server is, and even how busy your network is. You may want to make this a value that the user can change in his or her configuration.

(table continued on next page)

 
< previous page page_255 next page >

If you like this book, buy it!